package com.example.service.impl;

import com.example.dao.OrderDao;
import com.example.dao.impl.OrderDaoImpl;
import com.example.model.Order;
import com.example.service.OrderService;

import java.util.List;

public class OrderServiceImpl implements OrderService {
    private OrderDao orderDao = new OrderDaoImpl();
    @Override
    public List<Order> findAll(int uid) {
        List<Order> orders = orderDao.findAll(uid);
        return orders;
    }
}
